﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main1.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="ProjectSem40701.Register" ValidateRequest="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register assembly="Telerik.Web.UI, Version=2009.1.311.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" namespace="Telerik.Web.UI" tagprefix="telerik" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <div class="content_tab">
        <div class="content_tab_title"><span>Đăng ký</span></div>
        <div class="content_tab1">
            <div class="register">
                <fieldset class="login">
			        <legend>Thông tin tài khoản</legend>
			        <div>
				        <label for="username">Tài khoản</label> 
                        <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
			            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtUserName" ErrorMessage="*">*</asp:RequiredFieldValidator>
			        </div>
			        <div>
				        <label for="password">Mật khẩu</label> <asp:TextBox ID="txtPassword" 
                            runat="server" TextMode="Password"></asp:TextBox>
			            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="txtPassword" ErrorMessage="*">*</asp:RequiredFieldValidator>
			        </div>
			        <div>
				        <label for="password2">Xác nhận mật khẩu</label> 
                        <asp:TextBox ID="txtConfirm" runat="server" TextMode="Password"></asp:TextBox>
			            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate="txtConfirm" ErrorMessage="*">*</asp:RequiredFieldValidator>
			            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                            ControlToCompare="txtPassword" ControlToValidate="txtConfirm" ErrorMessage="*">Xác 
                        nhận phải trùng với mật khẩu</asp:CompareValidator>
			        </div>
			        <div>
				        <label for="mail">Email</label> <asp:TextBox ID="txtMail" runat="server"></asp:TextBox>
			            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="txtMail" ErrorMessage="*" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">Email 
                        sai định dạng</asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                            ControlToValidate="txtMail" ErrorMessage="*">*</asp:RequiredFieldValidator>
			        </div>
			        
			        <div>
				        <label for="question">Câu hỏi bí mật</label> <asp:TextBox ID="txtQuestion" runat="server"></asp:TextBox>
			        </div>
			        
			         <div>
				        <label for="question">Trả lời</label> <asp:TextBox ID="txtAnswer" runat="server"></asp:TextBox>
			        </div>
			        		        
		        </fieldset>
		        <fieldset class="contact">
			        <legend>Thông tin cá nhân</legend>
			        <div>
				        <label for="firstname">Tên</label> <asp:TextBox ID="txtFName" runat="server"></asp:TextBox>
			            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                            ControlToValidate="txtFName" ErrorMessage="*">*</asp:RequiredFieldValidator>
			        </div>
			        <div>
				        <label for="lastname">Họ</label> <asp:TextBox ID="txtLName" runat="server"></asp:TextBox>
			            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                            ControlToValidate="txtLName" ErrorMessage="*">*</asp:RequiredFieldValidator>
			        </div>
			        <div class="radio">
				        <fieldset>
					        <legend><span>Giới tính</span></legend>
					        <div>
                                <asp:RadioButton ID="rdbtnMale" runat="server" Text="Nam" Checked="True" 
                                    GroupName="sex" />
					        </div>
					        <div>
                                <asp:RadioButton ID="rdbtnFeMale" runat="server" Text="Nữ" GroupName="sex" />
					        </div>
				        </fieldset>
			        </div>
			        <div class="date">
			            <label for="dob">Ngày sinh</label> 
			            <asp:TextBox ID="txtBDay" runat="server"></asp:TextBox>
			            &nbsp;(dd/MM/yyyy)</div>
			        <div>
				        <label for="phone">Phone</label> 
                        <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
			        </div>
			         <div>
				        <label for="idCard">CMND</label> 
                        <asp:TextBox ID="txtIDCard" runat="server"></asp:TextBox>
			        </div>
		        </fieldset>  
		        
		        <div>
                    <asp:Button ID="btnAddUser" runat="server" Text="Đăng ký" CssClass="button2" 
                        onclick="btnAddUser_Click" Width="119px" />
		        </div>  
		   
		    </div>
        </div>
    </div>

    <cc1:ModalPopupExtender ID="btnAdd_ModalPopupExtender" runat="server" 
            DynamicServicePath="" Enabled="False" TargetControlID="btnAddUser" 
            BackgroundCssClass="modalBackground"
            PopupControlID="pnlPopup" BehaviorID="mdlPopup">
     </cc1:ModalPopupExtender>

    <asp:Panel ID="pnlPopup" runat="server" CssClass="confirm-dialog" style="display:none;">
        <div class="inner">
            <h2>
                <asp:Literal ID="ltrMessage" runat="server"></asp:Literal>
            </h2>
            <div class="base">
                <asp:Button ID="btnYes" OnClick="btnYes_Click" runat="server" Text="Yes" />
                <asp:Label ID="lblSuccess" runat="server" Text="" Visible="False"></asp:Label>
                <asp:LinkButton ID="LinkButton1" runat="server" CssClass="close" OnClick="btnClose_Click"
                    OnClientClick="$find('mdlPopup').hide(); return false;" />
            </div>
        </div>
    </asp:Panel>

</asp:Content>

